using UnityEngine;

public class SplashScreen : MonoBehaviour
{
	private void OnEnable()
	{
		Screen.sleepTimeout = -1;
		if (GGPlayerSettings.instance.Model.shownTutorial)
		{
			BehaviourSingleton<ScreenNavigation>.instance.LoadMain(MenuParameters.MenuParams.ShowScreen.None);
		}
		else
		{
			BehaviourSingleton<ScreenNavigation>.instance.LoadMatch(MatchParameters.MatchParams.CreateTutorialParams());
		}
		if (Application.platform == RuntimePlatform.IPhonePlayer)
		{
			BehaviourSingleton<Social>.instance.signIn();
		}
	}
}
